<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>定位</title>
    <style type="text/css">
    div {
        width: 200px;
        height: 200px;
    }

    #div1 {
        background-color: red;
        position: absolute;
        left: 50px;
        top: 200px;
    }

    #div2 {
        background-color: yellow;
    }

    </style>
</head>
<body>
<div id="div1">


</div>

<div id="div2">



</div>


</body>
</html>